package cn.vc.auth;

import cn.redcoral.messageplus.EnableMessagePlus;
import cn.vc.auth.handler.ShareRequestHandler;
import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableHystrix
@EnableMessagePlus
@EnableCreateCacheAnnotation//jetCache启用缓存的主开关（开启使用注解创建缓存）
@EnableFeignClients(basePackages = {"cn.vc.wallet.feign"})
@MapperScan(basePackages = "cn.vc.auth.mapper")
public class AuthServiceApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(AuthServiceApplication.class, args);
    }
}
